<?php defined('SYSPATH') or die('No direct script access.');

class PublicController extends Controller {

    public $activeMenuItem;

    public function __construct() {
        parent::__construct();
        if (! $this->contentLayout) {
            $this->contentLayout = 'publicLayout';
        }
        
        // If the user has not chosen a site language (the cookie is not set), choose it.
        /*
        $languageCookie = (string) cookie::get('language');
        if ($languageCookie) {
            $acceptedLanguages = request::getAcceptedLanguages();
            
            $supportedLanguages = Kohana::config('multi_lang.allowed_languages');
            var_dump($acceptedLanguages);
            echo '<br/><br/>';
            var_dump(Kohana::user_agent('languages'));
            echo '<br/><br/>';
            var_dump($supportedLanguages);
            
            $fallbackLanguage = Kohana::config('multi_lang.fallback_language');
        }
         */
    }
}
